<?php

namespace App\Http\Controllers\api;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Expenditure as exnModel;

class Expenditure extends Controller
{
    //支付记录表
    public function expendList(){
      $ExpenditureRest= exnModel::get();
      //判断参数
      if(empty($ExpenditureRest)){
          return ['code'=>400,'msg'=>'参数错误','data'=>null];
      }
        return ['code'=>200,'msg'=>'查询成功','data'=>$ExpenditureRest];

    }
}
